package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyy
 * @since 2020-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_fba_storage")
public class FbaStorageDo extends Model<FbaStorageDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * FBA仓库code
     */
    @TableField("fba_code")
    private String fbaCode;

    /**
     * FBA仓库名字
     */
    @TableField("fba_name")
    private String fbaName;

    /**
     * FBA仓库地址
     */
    @TableField("address")
    private String address;

    /**
     * FBA仓库邮编
     */
    @TableField("post_code")
    private String postCode;

    @TableField("tel_phone")
    private String telPhone;

    /**
     * FBA仓库所属地区id
     */
    @TableField("regin_jp_id")
    private Long reginJpId;

    @TableField("delete_flag")
    @TableLogic
    private Long deleteFlag;

    /**
     * FBA仓库所属地区id（新）
     */
    @TableField("area_id")
    private Long areaId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
